﻿
namespace StateTheater.Component
{
    using Castle.MonoRail.Framework;
	using Castle.MonoRail.ViewComponents;

    public class PersonComboComponent : ViewComponentEx
    {
        [ViewComponentParam(Default="person-combo")]
        public string Id { get; set; }

        private string varId;

        [ViewComponentParam(Default="personid")]
        public string HiddenName { get; set; }


        public override void Initialize()
        {
            base.Initialize();
            varId = Id.Replace('-', '_');

        }
        public override void Render()
        {
           base.Render();

            PropertyBag["Id"] = Id;
            PropertyBag["HiddenName"] = HiddenName;
//            RenderView("default");
        }
    }
}
